package com.leyou.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.dao.ActivityMapper;
import com.leyou.pojo.StoreActivity;
import com.leyou.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ls
 * @version 1.0
 * @description: 门店活动逻辑实现层
 * @date 2022/6/28 9:34
 */
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, StoreActivity> implements ActivityService {

    @Autowired
    private ActivityMapper activityMapper;

    /**
     * 添加门店活动
     * @param storeActivity
     * @return
     */
    @Override
    public int saveActivity(StoreActivity storeActivity) {

        return activityMapper.saveActivity(storeActivity);
    }
//    @Override
//    public int saveActivity(StoreActivity storeActivity) {
//        return activityMapper.saveActivity(storeActivity);
//    }
}
